<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/favicon.ico">

    <title>更改头像</title>

    <!-- Bootstrap core CSS -->
    <link href="/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/css/jumbotron.css" rel="stylesheet">
    <style type="text/css">
        body {
            padding-top: 120px;
        }


    </style>


</head>

<body>
<% include header.ejs %>
<div class="container">
    <!-- Example row of columns -->
    <div class="row">
        <h1>更改头像</h1>
        <form role="form" action="/dosetavatar" method="post" enctype="multipart/form-data">

            <div class="form-group">
                <label for="pic">选择图片</label>
                <input type="file" id="pic" name="pic">
                <!--<p class="help-block">Example block-level help text here.</p>-->
            </div>
            <button type="submit" class="btn btn-default" id="submit">上传</button>
        </form>

    </div>

</div> <!-- /container -->


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/js/jquery-1.11.3.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script type="text/javascript">
/*
    $("#submit").click(function () {
        $.post('/doregister', {
            "username": $("#username").val(),
            "psd": $("#psd").val()
        }, function (result) {
            if (result == 1) {

            } else if (result = -1) {
            }
        })
    })*/
</script>
</body>
</html>
